<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/reset.css" media="screen" type="text/css">
            <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" media="screen" type="text/css">
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                    <meta http-equiv="imagetoolbar" content="false">
                        <meta name="MSSmartTagsPreventParsing" content="true">
                            <link href="*.ico" rel="shortcut icon">
                                <meta content="" name="description">
                                    <meta content="reliapro, cbrhm, test" name="keywords">
                                        <?php
                                        $_jj = Yii::app()->getClientScript();
                                        $_jj->registerScriptFile(Yii::app()->request->baseUrl . "/js/collapsible.js");
                                        $_jj->registerCssFile(Yii::app()->request->baseUrl . "/css/collapsible.css");
                                        ?>
                                        <!--[if IE 6]>
                                                                <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/pngfix.js"></script>
                                                                <script>DD_belatedPNG.fix('.png');</script>
                                        <![endif]-->
                                        </head>
                                        <body>
                                            <div id="wrapper">
                                                <div id="topwrapper"></div>
                                                <div id="mainwrapper">
                                                    <div id="header">
                                                        <div class="center">
                                                            <!-- Logo Start -->
                                                            <div id="logo"> <a href="<?php echo Yii::app()->baseUrl; ?>"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/logo.png" alt="logo" /></a> </div>
                                                            <!-- Logo End -->
                                                            <div id="headerright">
                                                                <!-- Menu Navigation Start -->
                                                                <div id="mainmenu">
                                                                    <?php
                                                                    $items = array(
                                                                        array('label' => 'Home', 'url' => array('/site/index')),
                                                                        array('label' => 'About', 'url' => array('/site/page', 'view' => 'about')),
                                                                        array(
                                                                            'label' => 'Kompetensi',
                                                                            'url' => array('/site/contact'),
                                                                            'visible' => !Yii::app()->user->isGuest,
                                                                            'items' => array(
                                                                                array(
                                                                                    'label' => 'Kategori Kompetensi',
                                                                                    'url' => array(''),
                                                                                    'visible' => !Yii::app()->user->isGuest,
                                                                                    'items' => array(
                                                                                        array(
                                                                                            'label' => 'Unit Kompetensi',
                                                                                            'url' => array('/competencyUnit'),
                                                                                            'visible' => !Yii::app()->user->isGuest,
                                                                                        ),
                                                                                        array(
                                                                                            'label' => 'Elemen Kompetensi',
                                                                                            'url' => array('/competencyElement'),
                                                                                            'visible' => !Yii::app()->user->isGuest,
                                                                                        ),
                                                                                    ),
                                                                                ),
                                                                                array(
                                                                                    'label' => 'Kamus Kompetensi',
                                                                                    'url' => array('/competencyLibrary'),
                                                                                    'visible' => !Yii::app()->user->isGuest,
                                                                                ),
                                                                            )
                                                                        ),
                                                                        array(
                                                                            'label' => 'Contact',
                                                                            'url' => array('/site/contact'),
                                                                            'items' => array()
                                                                        ),
                                                                        array('label' => 'Login', 'url' => array('/user/login'), 'visible' => Yii::app()->user->isGuest),
                                                                        array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/user/logout'), 'visible' => !Yii::app()->user->isGuest)
                                                                    );

                                                                    $this->widget('ext.CDropDownMenu.CDropDownMenu', array(
                                                                        'style' => 'default', // or default or navbar
                                                                        'items' => $items,
                                                                            )
                                                                    );
                                                                    ?>
                                                                </div>
                                                                <!-- Menu Navigation End -->
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!--/*bagian header*/-->
<?php if (isset($this->breadcrumbs)): ?>
<?php
//                                                                        $this->widget('zii.widgets.CBreadcrumbs', array(
//                                                                            'links' => $this->breadcrumbs,
//                                                                        ));
?>
                                                                        <!-- breadcrumbs -->
                                                    <?php endif ?>
<?php echo $content; ?>
                                                </div>
                                                <div id="bottomwrapper"></div>
                                            </div>
                                        </body>
                                        </html>